{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}I:\Sebastian\Statistics\Stata\Stata13\fpa-robust-appendix-a.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}28 Jul 2025, 13:59:37
{txt}
{com}. use fpa-aid_bits_final,clear
{txt}
{com}. 
. grstyle init
{res}{txt}
{com}. grstyle set plain, nogrid noextend 
{txt}
{com}. 
. //figure a1
. colorcor bit_ratf lnt_bit p_polity2 ln_gdppc wdi_gdpgr wdi_fdiin wdi_natrr lnpop conflict pta ally ///
> unsc_member ln_distance colonial_tie coldwar if oecd_i==1&oecd_j==0&year>=1960&year<2013,nonsig(gs12) 
{res}{txt}
{com}. graph export fa1.pdf,replace
{txt}{p 0 4 2}
file {bf}
fa1.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. //figure a2
. combineplot bit_ratf-coldwar if oecd_i==1&oecd_j==0&year>=1960&year<2013, combine(imargin(small)): histogram @y, freq yla(, ang(h)) col(gs12)
{txt}(bin={res}50{txt}, start={res}0{txt}, width={res}.02{txt})
(bin={res}50{txt}, start={res}4.1271343{txt}, width={res}.07322154{txt})
(bin={res}50{txt}, start={res}-10{txt}, width={res}.4{txt})
(bin={res}50{txt}, start={res}4.2424655{txt}, width={res}.14138864{txt})
(bin={res}50{txt}, start={res}-51.030865{txt}, width={res}3.1462135{txt})
(bin={res}50{txt}, start={res}-82.892095{txt}, width={res}4.8943169{txt})
(bin={res}50{txt}, start={res}.00099453{txt}, width={res}1.7865535{txt})
(bin={res}50{txt}, start={res}12.35851{txt}, width={res}.17330751{txt})
(bin={res}50{txt}, start={res}0{txt}, width={res}.02{txt})
(bin={res}50{txt}, start={res}0{txt}, width={res}.02{txt})
(bin={res}50{txt}, start={res}0{txt}, width={res}.02{txt})
(bin={res}50{txt}, start={res}0{txt}, width={res}.02{txt})
(bin={res}50{txt}, start={res}3.7841897{txt}, width={res}.11248691{txt})
(bin={res}50{txt}, start={res}0{txt}, width={res}.02{txt})
(bin={res}50{txt}, start={res}0{txt}, width={res}.02{txt})
{res}{txt}
{com}. graph export fa2.pdf, replace
{txt}{p 0 4 2}
file {bf}
fa2.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. // figure a3
. set more off
{txt}
{com}. sort dyad year
{txt}
{com}. 
. quietly teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0
{txt}
{com}. 
. teffects overlap
{res}{txt}
{com}. graph export fa3.pdf, replace
{txt}{p 0 4 2}
file {bf}
fa3.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}I:\Sebastian\Statistics\Stata\Stata13\fpa-robust-appendix-a.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}28 Jul 2025, 15:58:50
{txt}{.-}
{smcl}
{txt}{sf}{ul off}